$(document).ready(function(){
	$("#checkRules").click(function(){
    	var s=$(this).attr("src");
    	if(s.indexOf("disagree")>0){//未选中状态
			$(this).attr("src","images/su-agree.png")
    		$("checkbox#rules").attr("checked","checked");
		} else{
    		$(this).attr("src","images/su-disagree.png")
    		$("checkbox#rules").removeAttr("checked");
    	}
	});
	
	$("#checkAut").click(function(){
    	var s=$(this).attr("src");
    	if(s.indexOf("disagree")>0){//未选中状态
			$(this).attr("src","images/su-agree.png")
    		$("checkbox#aut").attr("checked","checked");
		} else{
    		$(this).attr("src","images/su-disagree.png")
    		$("checkbox#aut").removeAttr("checked");
    	}
	});
	
	$("#checkPro").click(function(){
    	var s=$(this).attr("src");
    	if(s.indexOf("disagree")>0){//未选中状态
			$(this).attr("src","images/su-agree.png")
    		$("checkbox#profile").attr("checked","checked");
		} else{
    		$(this).attr("src","images/su-disagree.png")
    		$("checkbox#profile").removeAttr("checked");
    	}
	});
	
	$("#checkLocal").click(function(){
    	var s=$(this).attr("src");
    	if(s.indexOf("disagree")>0){//未选中状态
			$(this).attr("src","images/su-agree.png")
    		$("checkbox#local").attr("checked","checked");
		} else{
    		$(this).attr("src","images/su-disagree.png")
    		$("checkbox#local").removeAttr("checked");
    	}
	});
	
	$("#checkInv").click(function(){
    	var s=$(this).attr("src");
    	if(s.indexOf("disagree")>0){//未选中状态
			$(this).attr("src","images/su-agree.png")
    		$("checkbox#inv").attr("checked","checked");
		} else{
    		$(this).attr("src","images/su-disagree.png")
    		$("checkbox#inv").removeAttr("checked");
    	}
	});
	
	$("#checkDaily").click(function(){
    	var s=$(this).attr("src");
    	if(s.indexOf("disagree")>0){//未选中状态
			$(this).attr("src","images/su-agree.png")
    		$("checkbox#daily").attr("checked","checked");
		} else{
    		$(this).attr("src","images/su-disagree.png")
    		$("checkbox#daily").removeAttr("checked");
    	}
	});
	
	$("#checkCase").click(function(){
    	var s=$(this).attr("src");
    	if(s.indexOf("disagree")>0){//未选中状态
			$(this).attr("src","images/su-agree.png")
    		$("checkbox#case").attr("checked","checked");
		} else{
    		$(this).attr("src","images/su-disagree.png")
    		$("checkbox#case").removeAttr("checked");
    	}
	});
	
	$("#checkOnline").click(function(){
    	var s=$(this).attr("src");
    	if(s.indexOf("disagree")>0){//未选中状态
			$(this).attr("src","images/su-agree.png")
    		$("checkbox#online").attr("checked","checked");
		} else{
    		$(this).attr("src","images/su-disagree.png")
    		$("checkbox#online").removeAttr("checked");
    	}
	});
	
	$("#checkCer").click(function(){
    	var s=$(this).attr("src");
    	if(s.indexOf("disagree")>0){//未选中状态
			$(this).attr("src","images/su-agree.png")
    		$("checkbox#cer").attr("checked","checked");
		} else{
    		$(this).attr("src","images/su-disagree.png")
    		$("checkbox#cer").removeAttr("checked");
    	}
	});
});